package com.jy.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@RestController
@RequestMapping("/provider/")
public class RestProviderController {
    @DeleteMapping("{id}")
    public String doDeleteById(@PathVariable Long ...id){
        System.out.println("provider.id="+id);
        return Arrays.toString(id) +" is deleted";
    }
}
